package com.zd.kids.ui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.text.Html;
import android.widget.TextView;

import com.blankj.utilcode.util.SpanUtils;
import com.gyf.immersionbar.BarHide;
import com.gyf.immersionbar.ImmersionBar;
import com.hyy.libray.presenter.IBasePresenter;
import com.hyy.libray.ui.activity.BaseActivity;
import com.zd.kids.R;
import com.zd.kids.common.MyApplication;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class RegistSuccActivity extends BaseActivity {

    @BindView(R.id.tv_tips)
    TextView tvTips;

    /**
     * 获取布局文件地址
     */
    @Override
    public int getLayoutResId() {
        return R.layout.activity_regist_succ;
    }

    /**
     * 初始化布局
     */
    @Override
    public void initView() {
        ImmersionBar.with(this)
                .hideBar(BarHide.FLAG_HIDE_BAR)
                .init();

        SpanUtils.with(tvTips)
                .append(getString(R.string.welcome_come))
                .setForegroundColor(0xff696969)
                .append("\n")
                .append("GA")
                .setForegroundColor(0xffa92e37)
                .append("PSK")
                .setForegroundColor(0xff285f95)
                .append(getString(R.string.ai_gapsk_qm))
                .setForegroundColor(0xff696969)
                .create();


    }

    /**
     * 获取Presenter，不用MVP，可以为空
     *
     * @return
     */
    @Override
    protected IBasePresenter onBasePresenter() {
        return null;
    }


    @OnClick(R.id.tv_confirm)
    public void onViewClicked() {
        Intent intent = new Intent(this, MainTypeActivity.class);
        if (MyApplication.isHasFlutter) {
            // TODO: 2021/7/9  
//            intent = FlutterUtils.getFultterIntent(this);
        }
        startActivity(intent);

        finish();
    }
}
